package com.flexcodejam.vfd.event
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.flexcodejam.vfd.vo.*;
	import flash.events.Event;

	public class FoodDriveEvent extends CairngormEvent {
			
		public var foodDrive:FoodDrive;
		
		//User for GetFoodDrivebyManagerIdCommand
		public var user:User;
		
		public static var GetById:String = "GetFoodDriveById";
		public static var GetAll:String = "GetAllFoodDrives";
		public static var Save:String = "SaveFoodDrive";
		public static var GetByManagerId:String = "GetFoodDriveByManagerId";
		public static var GetUserByFoodDriveId:String = "GetUserByFoodDriveId";
	
		/**
		 * Constructor.
		 */
		public function FoodDriveEvent(type:String,bubbles:Boolean=true,cancelable:Boolean=false)
		{
			super(type,bubbles,cancelable);
		}	
     	
     	/**
     	 * Override the inherited clone() method, but don't return any state.
     	 */
		override public function clone() : Event
		{
			var e:FoodDriveEvent = new FoodDriveEvent(type,bubbles,cancelable);
			e.user = user;
			e.foodDrive = foodDrive;
			return e;
		}	
	}
}
